using System;

 namespace QLST_DTO 
{
	 [Serializable]
	 public class LOAI_KHACH_HANG
	{
	private int maLoaiKH;
	private string tenLoaiKH;
	private string moTa;
	public LOAI_KHACH_HANG()
	{}
	public LOAI_KHACH_HANG(int maLoaiKH,string tenLoaiKH,string moTa)
	{
	this.maLoaiKH = maLoaiKH;
	this.tenLoaiKH = tenLoaiKH;
	this.moTa = moTa;
	}
	public int MaLoaiKH{
	get { return this.maLoaiKH;}
	set { if(value==null) 
		throw new Exception("maLoaiKH not allow nullvalue.");
		this.maLoaiKH=value;
	}	}
	public string TenLoaiKH{
	get { return this.tenLoaiKH;}
	set { if(value==null) 
		throw new Exception("tenLoaiKH not allow nullvalue.");
		this.tenLoaiKH=value;
	}	}
	public string MoTa{
	get { return this.moTa;}
	set {this.moTa=value;}
	}
	public override string ToString(){
	return this.maLoaiKH+"; "+this.tenLoaiKH+"; "+this.moTa+"; ";
	}
	public override bool Equals(Object obj)
	{
	LOAI_KHACH_HANG me=(LOAI_KHACH_HANG)obj;
	bool ret=this.MaLoaiKH.Equals(me.MaLoaiKH);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.MaLoaiKH.GetHashCode();
	}

	}
} 